﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeFinder.Web.Models {
    public class PageInfo {
        public PageInfo() {
            PageSize = 10;
        }
        public int Totals { get; set; }
        public int PageSize { get; set; }
        public int Current { get; set; }
        public int TotalPages {
            get {
                return (int) Math.Ceiling((decimal) Totals / PageSize);
            }
        }
    }
}